package com.myCommunity.entity;

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

public class Comment {
	public Users getUser() {
		return user;
	}
	public void setUser(Users user) {
		this.user = user;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCommentTime() {
		return commentTime;
	}
	public void setCommentTime(Date commentTime) {
		this.commentTime = commentTime;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public int getCommentType() {
		return commentType;
	}
	public void setCommentType(int commentType) {
		this.commentType = commentType;
	}
	public int getReferenceId() {
		return referenceId;
	}
	public void setReferenceId(int referenceId) {
		this.referenceId = referenceId;
	}
	public int getCommenterId() {
		return commenterId;
	}
	public void setCommenterId(int commenterId) {
		this.commenterId = commenterId;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	
	private int id ;
	private String content;
	private Date commentTime;
	private String ip;
	private int commentType;
	private int referenceId;
	private int commenterId;
	private int status;
	public Comment(int id, String content, Date commentTime, String ip,
			int commentType, int referenceId, int commenterId, int status) {
		super();
		this.id = id;
		this.content = content;
		this.commentTime = commentTime;
		this.ip = ip;
		this.commentType = commentType;
		this.referenceId = referenceId;
		this.commenterId = commenterId;
		this.status = status;
	}
	
	public Comment() {
		// TODO Auto-generated constructor stub
	}
	
	private Users user;
	
}
